<?php
class Order_Service_OrderPickupMap
{


	public static function getByfield($field,$value)
	{ 
		$obj=new Order_Model_OrderPickupMap();
		$rows= $obj->getByfield($field,$value);
		if(!empty($rows)){
			$rows=$rows->toArray();
		}
		return $rows;
	}
	
	/**
	 * 通过下架单与产品ID或其他条件，返回所有数据
	 */
	public static function getAllByCond($cond,$type='*',$orderby=array()){		
		$obj=new Order_Model_OrderPickupMap();
		return $obj->getAllByCond($cond,$type,$orderby);		
	}
	
	/**
	 * 通过下架单与产品ID或其他条件，返回一行数据
	 */
	public static function getRowByCond($cond,$type='*',$orderby=array()){		
		$obj=new Order_Model_OrderPickupMap();
		return $obj->getRowByCond($cond,$type,$orderby);		
	}
	
	public static function updateByCond($row,$cond)
	{ 
		$obj=new Order_Model_OrderPickupMap();
		return $obj->updateByCond($row,$cond);
	}
	
	
}